<!doctype html>
<html class="no-js" lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>Families Lead :: Welcome!</title>
        <meta name="description" content="Families Lead">
        <meta name="author" content="Jeff Denton :: The Teaching Research Institute (dentonj@wou.edu)">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <link rel="shortcut icon" href="<?php echo BASE_URL; ?>/images/favicon.ico">
        <link rel="apple-touch-icon" href="<?php echo BASE_URL; ?>/images/apple-touch-icon.png">
        
        <?php echo cachedFile('browserReset.css','media="screen"'); ?>
        <?php
        $bodyClass = '';
        echo cachedFile('styles.css','media="screen"');
        echo cachedFile('buttons.css','media="screen"');
        echo cachedFile('alerts.css','media="screen"');
        if (IS_MOBILE === 'no') {
            echo cachedFile('layoutDesktop.css','media="screen"');
        } else {
            echo cachedFile('layoutMobile.css','media="screen"');
            $bodyClass = 'mobile';
        }        
        echo cachedFile('icons_mime.css','media="screen"');

        if ($this->uri->total_segments()>0) {
            $bodyClass = 'child';
        }
?>
        <style>
            #photoContainer {
                background: url(<?php echo BASE_URL; ?>/images/pic1.png) no-repeat;
            }
        </style>
    </head>
    <body class="<?php echo $bodyClass; ?>">
        <div id="header">
            <div id="masthead">
                <div id="topBlackBar">
                    <ul style="float: left;" class="horizMenu menuBlackBar">
                        <li><a href="<?php echo BASE_URL; ?>" class="linkWhiteSmall">Home</a></li>
                        <li><a href="<?php echo site_url('contact'); ?>" class="linkWhiteSmall">Contact us</a></li>
                        <li class="last"><a href="<?php echo site_url('about'); ?>" class="linkWhiteSmall">About this site</a></li>
                    </ul>
                    <?php if ($this->session->userdata('logged') == true) { ?>
                    <ul class="horizMenu menuBlackBar" style="float: right;">
                        <li><a href="<?php echo site_url('newresource'); ?>" class="linkWhiteSmall">Add resources</a></li>
                        <li class="last"><strong><a href="<?php echo site_url('login/logout'); ?>" class="linkRedSmall">Logout</a></strong></li>
                    </ul>
                    <? } else { ?>
                    <div style="float: right; margin: 8px 14px 0 0;">
                        <span class="linkWhiteSmall">Artwork by Jeremy Johnson</span>
                    </div>
                    <? } ?>
                </div>
                <div id="blueField">
                    <div id="logoContainer">
                        <div id="logo"></div>
                        <div id="tagLine"></div>
                    </div>
                    <div id="photoContainer"></div>
                    <div style="clear: both;"></div>
                    <?php $this->load->view('includes/menuMain'); ?>
                </div>
            </div>
        </div>
        <div id="pageBody">
            <div id="pageBodyContentContainer">
                <div id="pageBodyContent">               
